<?php 
include_once 'viper/autoloader.php';

class viper_server_addFeature {

public static function AddFeature($clusters, $result) {
	$n = viper_dao::getParameter('user_number');     // number of users
	$m = viper_dao::getParameter('feature_number');      // number of features 
	$k = viper_dao::getParameter('cluster_number');       // # of clusters
	$f = viper_dao::getParameter('friends_number');      // # of friends
	
	// Add a new feature column
	viper_server_dbOps::AddFeatureColumn();
	
	// Set the ratings for the new feature to a desired value
	viper_server_dbOps::AddNewFeatureScore();
}

public static function DeleteFeature($featureIndex) {
	// *TODO*
	// DONT Delete the data
	// Set the visibility to false
	// viper_server_dpOps::DeleteFeatureColumn($featureIndex);
}

}  // end ofviper_server_addFeature